<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<a href='<c:url value="/add"/>'>add</a>

<table border="1">
    <thead>
        <th>id</th>
        <th>name</th>
        <th>cost</th>
        <th>handle</th>
    </thead>
    <tbody>
    <c:forEach items="${periodicals}" var="periodical">
        <tr>
            <td>${periodical.id}</td>
            <td>${periodical.name}</td>
            <td>${periodical.cost}</td>
            <td>
                <a href='<c:url value="/edit?id=${periodical.id}"/>'>edit</a>
                <a href='<c:url value="/delete?id=${periodical.id}"/>'>delete</a>
                <a href='<c:url value="/subs/subscribe?id=${periodical.id}"/>'>subscribe</a>
            </td>
        </tr>
    </c:forEach>
    </tbody>
</table>